#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<string>
using namespace std;


void vectortest1()
{
	vector<int> v(10, 1);
	vector<int> v1(v);
	vector<int> v3(v1.begin(), v1.end());

	for (int i = 0; i < v3.size(); i++)
	{
		cout << v3[i] << " ";
	}
	cout << endl;

	vector<int>::iterator it = v.begin();
	while (it != v.end())
	{
		cout << *it << " ";
		it++;
	}
	cout << '\n';

	for (auto& a : v1)
	{
		cout << a << " ";
	}
	cout << endl;
}
void vectortest2()
{
	vector<int> v1(10, 1);
	v1.push_back(1);
	v1.insert(v1.begin(), 4);
	v1.erase(v1.begin(),v1.end()-1);
	for (auto& a : v1)
	{
		cout << a << " ";
	}
	cout << endl;
}
void vectortest3()
{
	vector<int> v(10, 1);
	v.resize(15, 0);
	for (int i = 0; i < v.size(); i++)
	{
		cout << v[i];
	}
	cout << endl;

	vector<int>::iterator it = v.begin();
	while (it != v.end())
	{
		cout << *it;
		it++;
	}
	cout << endl;

	for (const auto& r : v)
	{
		cout << r;
	}
	cout << endl;
}
int main()
{
	vectortest3();
	/*int a = 1;
	string s1 = to_string(1 + 2 + 3 + 4 - 4 + 44);
	cout << s1 << endl;*/
	return 0;
}